<template>
  <div class="houseItem">
    <div class="left">
      <img :src="'http://liufusong.top:8080' + item.houseImg " alt="">
    </div>
    <div class="right">
      <h3 class="title">{{ item.title }}</h3>
      <div class="desc">{{ item.desc }}</div>
      <div class="tags">
        <span>{{ item.tags[0] }}</span>
      </div>
      <div class="price">
        <span>{{ item.price }} <i>元/月</i></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    item: Object
  }
}
</script>

<style lang="less" scoped>
.houseItem {
  display: flex;
  width: 100%;
  height: 120px;
  padding-top: 18px;
  border-bottom: 1px solid #e5e5e5;
  .left {
    width: 106px;
    height: 80px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .right {
    padding-left: 12px;
    .title {
      font-size: 15px;
      color: #394043;
      margin: 0;
      font-weight: bold;
    }
    .desc {
      font-size: 12px;
      color: #afb2b3;
      margin-top: 2px;
    }
    .tags {
      width: 46px;
      height: 20px;
      color: #39becd;
      margin-top: 2px;
      text-align: center;
      background: #e1f5f8;
      span {
        font-size: 12px;
      }
    }
    .price {
      margin-top: 2px;
      span {
        font-size: 18px;
        color: #fa5741;
        font-weight: bold;
        i {
          font-style: normal;
          font-size: 12px;
        }
      }
    }
  }
}
</style>
